package com.tom.springframework.beans.factory.support;

import com.tom.springframework.BeansException;
import com.tom.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * Bean实例化策略接口
 *
 * @author zx
 * @date 2024-11-07 09:27
 */
public interface InstantiationStrategy {
    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;
}
